<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
       <#if (advertising.data?size) gt 0>
            <#list advertising.data as ats>
             <li data-target="#carousel-example-generic" data-slide-to="${ats_index}"
                 class="${(ats_index==0) ? string('active','')}"></li>
            </#list>
        <#else>
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        </#if>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <#if (advertising.data?size) gt 0>
            <#list advertising.data as ats>
                <div class="item ${(ats_index==0) ? string(' active','')}">
                    <img src="${ats.image}"
                         alt="...">
                    <div class="carousel-caption">
                    </div>
                </div>
            </#list>
        <#else>
            <div class="item active">
                <img src="${basePath}/img/banner1.png"
                     alt="...">
                <div class="carousel-caption">
                </div>
            </div>
            <div class="item">
                <img src="${basePath}/img/banner2.png"
                     alt="...">
                <div class="carousel-caption">
                </div>
            </div>
            <div class="item">
                <img src="${basePath}/img/banner1.png"
                     alt="...">
                <div class="carousel-caption">
                </div>
            </div>
        </#if>
    </div>
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>